#include<stdio.h>
int main(int argc, const char *argv[])
{
	int a[5];
	int *p = NULL,*q = NULL,temp;
	printf("请输入5个数：");
	for(int i=0;i<5;i++)
		scanf("%d",&a[i]);
	p = a;
	q = &(a[4]);
	while(p<q)
	{
		temp = *p;
		*p = *q;
		*q = temp;
		p++;
		q--;
	}
	for(int i=0;i<5;i++)
		printf("%d ",a[i]);

	putchar('\n');
	return 0;
}
